package com.zjhn.ds.domain.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.domain.entity.erp
 * @Author: sxt
 * @CreateTime: 2023-09-04  14:51
 * @Description:
 * @Version: 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("mes.pbox")
public class MesProBox {

    @TableId
    @TableField("Id")
    private String id;

    @TableField("CreateTime")
    private Date createTime;

    @TableField("DataStatus")
    private Integer dataStatus;

    @TableField("IsDeleted")
    private Integer isDeleted;

    @TableField("PTaskId")
    private String pTaskId;

    @TableField("PDetailId")
    private String pDetailId;

    @TableField("BoxNo")
    private Integer boxNo;

    @TableField("Rfid")
    private String rfid;

    @TableField("CurrentQty")
    private BigDecimal currentQty;

    @TableField("PlanQty")
    private BigDecimal planQty;

    @TableField("Code")
    private String code;

    @TableField("CurrentStep")
    private String currentStep;

    @TableField("AbandonEventId")
    private String abandonEventId;

    @TableField("CreateEventId")
    private String createEventId;

    @TableField("isResetWh")
    private Boolean resetWhed;

    /**
     * 是否返工包
     */
    @TableField("IsRework")
    private Boolean reworked;

    @TableField("ReWorkId")
    private String reWorkId;

    @TableField("IsDisplay")
    private Boolean displayed;

    @TableField("BatchNo")
    private String batchNo;

    @TableField("SendLastCard")
    private Boolean sendLastCard;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;
}
